package com.maocc.springnancore.service.impl;

import com.maocc.springnancore.entity.User;
import com.maocc.springnancore.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author maochongchong
 * @version 1.0
 * @date 2021/1/21 18:17
 */
@Slf4j
@Service
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(Integer id) {
        log.info(" getUser  id = {}",id);
        return new User().builder().userId(id).name("xxx").sex("male").build();
    }
}
